Optimal. Leaf size=108 \[ -\frac {(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;1+n;\frac {c (a+b x)}{a (c+d x)}\right )}{n}+\frac {(a+b x)^n (c+d x)^{-n} \left (\frac {b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;1+n;-\frac {d (a+b x)}{b c-a d}\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 108, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {132, 72, 71, 12,
133} \begin {gather*} \frac {(a+b x)^n (c+d x)^{-n} \left (\frac {b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;n+1;-\frac {d (a+b x)}{b c-a d}\right )}{n}-\frac {(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;n+1;\frac {c (a+b x)}{a (c+d x)}\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 71
Rule 72
Rule 132
Rule 133
Rubi steps
\begin {align*} \int \frac {(a+b x)^n (c+d x)^{-n}}{x} \, dx &=a \int \frac {(a+b x)^{-1+n} (c+d x)^{-n}}{x} \, dx+b \int (a+b x)^{-1+n} (c+d x)^{-n} \, dx\\ &=-\frac {(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;1+n;\frac {c (a+b x)}{a (c+d x)}\right )}{n}+\left (b (c+d x)^{-n} \left (\frac {b (c+d x)}{b c-a d}\right )^n\right ) \int (a+b x)^{-1+n} \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^{-n} \, dx\\ &=-\frac {(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;1+n;\frac {c (a+b x)}{a (c+d x)}\right )}{n}+\frac {(a+b x)^n (c+d x)^{-n} \left (\frac {b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;1+n;-\frac {d (a+b x)}{b c-a d}\right )}{n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 89, normalized size = 0.82 \begin {gather*} \frac {(a+b x)^n (c+d x)^{-n} \left (-\, _2F_1\left (1,n;1+n;\frac {c (a+b x)}{a (c+d x)}\right )+\left (\frac {b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;1+n;\frac {d (a+b x)}{-b c+a d}\right )\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (b x +a \right )^{n} \left (d x +c \right )^{-n}}{x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x\right )^{n} \left (c + d x\right )^{- n}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,x\right )}^n}{x\,{\left (c+d\,x\right )}^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________